<template>
	<view class="helpcenter">
		<!-- 顶部导航 -->
		<diyNavBar value='帮助中心' :bottom='40'></diyNavBar>
		<view class="box">
			<view class="title">
				常见问题
			</view>
			<view class="item" v-for="(item,index) in dataHtml" :key="index"
			@click="$util.redirectTo('/pages/helpcentercontent/helpcentercontent',{
					 id:item.id
			})">
				<text class="left">{{item.title}}</text>
				<text class="iconfont icon-jinrujiantou"></text>
			</view>
		</view>
		<!-- 加载 -->
		<loading-cover ref="loadingCover"></loading-cover>		
	</view>
</template>

<script>
	import diyNavBar from '../../component/diy-nav/diy-navbar.vue'
	import loadingCover from '../../component/loading-cover/loading-cover.vue'
	export default{
		components:{diyNavBar,loadingCover},
		data(){
			return {
				// list:['怎么绑定支付宝？','怎么开通子账号？','任务过期原因？','充值不成功？','账号密码怎么修改？'],
				dataHtml:{
					title:'',
				}
			}
		},
		onLoad() {
			this.$http.sendrequest('/index/HelpList',{},{
				tokenJudge:true
			}).then(res=>{
				this.dataHtml = res.data;
				this.$refs.loadingCover.hide();
			})
		}
	}
</script>

<style lang="scss" scoped>
	.helpcenter{
		min-height: 100vh;
		background:$uni-content-background-color;
		font-family: Arial;
	}
	.box{
		margin: 0 30rpx;
		border-radius: 20rpx 20rpx 0 0;
		background: #FFFFFF;
		.title{
			font-size: 28rpx;
			font-weight: bold;
			height: 100rpx;
			line-height: 100rpx;
			padding-left: 30rpx;
			border-bottom: 2rpx solid rgba(0,0,0,.02);
		}
		.item{
			margin-left: 30rpx;
			font-size: 28rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;
			height: 100rpx;
			border-bottom: 2rpx solid rgba(0,0,0,.02);
			padding-right: 30rpx;
			box-sizing: border-box;
			.icon-jinrujiantou{
				color: #999999;
				font-size: 38rpx;
			}
		}
	}
</style>
